import Vue from 'vue'
import Router from 'vue-router'
import webPagesHome from './webPages/home.js'
import adminPagesHome from './adminPages/home.js'

Vue.use(Router)

export default new Router({
  routes: [
    ...webPagesHome,
    ...adminPagesHome,
    {
      path: '*',
      name: 'page404',
      component: () => import('@/components/BsPageNotFound')
    }
  ],
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})
